package com.glacier.yuyuan.modules.admin.sys.domain;

import com.glacier.common.core.domain.TreeEntity;

/**
 * date 2022-11-10 12:11
 * 菜单表
 *
 * @author glacier
 * @version 1.0
 */
public class Menu extends TreeEntity<Menu> {
	private static final long serialVersionUID = 8084873133865227610L;
	/**
	 * 链接
	 */
	private String href;

	/**
	 * 目标
	 */
	private String openType;

	/**
	 * 图标
	 */
	private String icon;

	/**
	 * 类型
	 */
	private int type;

	/**
	 * 是否可见
	 */
	private String visible;

	/**
	 * 权限标识
	 */
	private String permission;

	public Menu() {
	}

	public Menu(String id) {
		super(id);
	}

	public String getHref() {
		return href;
	}

	public void setHref(String href) {
		this.href = href;
	}

	public String getOpenType() {
		return openType;
	}

	public void setOpenType(String openType) {
		this.openType = openType;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getVisible() {
		return visible;
	}

	public void setVisible(String visible) {
		this.visible = visible;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	@Override
	public String toString() {
		return "Menu{" +
				"title='" + title + '\'' +
				", href='" + href + '\'' +
				", openType='" + openType + '\'' +
				", icon='" + icon + '\'' +
				", type=" + type +
				", visible='" + visible + '\'' +
				", permission='" + permission + '\'' +
				", parentId='" + parentId + '\'' +
				", sort=" + sort +
				", children=" + children +
				", parentName='" + parentTitle + '\'' +
				", id='" + id + '\'' +
				", createBy='" + createBy + '\'' +
				", createTime=" + createTime +
				", updateBy='" + updateBy + '\'' +
				", updateTime=" + updateTime +
				", remark='" + remark + '\'' +
				'}';
	}
}
